// import Bot from '../../bot/index'
const state = {
  main: 0,
  bot: null
}

const mutations = {
  DECREMENT_MAIN_COUNTER (state) {
    state.main--
  },
  INCREMENT_MAIN_COUNTER (state) {
    state.main++
  },
  SET_BOT (state, data) {
    state.bot = data
  }
}

const actions = {
  someAsyncTask ({ commit }) {
    // do something async
    commit('INCREMENT_MAIN_COUNTER')
  },
  initBot ({ commit }) {
    // const bot = new Bot()
    const bot = {}
    commit('SET_BOT', bot)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
